package com.zjw.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zjw.shortlink.admin.dao.entity.UserDO;
import com.zjw.shortlink.admin.dto.req.UserLoginReqDTO;
import com.zjw.shortlink.admin.dto.req.UserRegisterReqDTO;
import com.zjw.shortlink.admin.dto.req.UserUpdateReqDTO;
import com.zjw.shortlink.admin.dto.resp.UserLoginRespDTO;
import com.zjw.shortlink.admin.dto.resp.UserRealRespDTO;
import com.zjw.shortlink.admin.dto.resp.UserRespDTO;

public interface UserService extends IService<UserDO> {
    Boolean isExistUsername(String username);
    UserRespDTO getUserByUserName(String username);
    UserRealRespDTO getRealUserByUserName(String username);
    void register(UserRegisterReqDTO userDO);
    void update(UserUpdateReqDTO userDO);
    UserLoginRespDTO login(UserLoginReqDTO requestParam);
    Boolean checkLogin(String username, String token);
    void logout(String username, String token);
}
